  <?php
  $path="C:/xampp/htdocs/00_JO/JOi/";
  		include_once ($path.'DataProvider/DataProvider.php');
      $path="C:/xampp/htdocs/00_JO/JOi/controller/";
      include_once($path.'JO_SMS_Controller.php');
  		$sea=$_GET['SO_sea'];
		$sea2=$_GET['SO_sea2'];
		$sea3=$_GET['SO_sea3'];
		$sea4=$_GET['SO_sea4'];
		
  ?>

	<?php if($sea4=='INCOM'){ ?>
       <table class="tbi2" width ="100%" style="">
          <tr style="">
            <td >Mã Lệnh </td >
            <td >Đơn Vị Cung Cấp </td >
            <td >Loại Hình Nội Dung </td >
            <td >GPC</td >
            <td >SFONE</td >
            <td >VMS </td >
            <td >CITYFONE</td >
            <td >VIETTEL</td >
            <td >TỔNG CỘNG </td >
          </tr>
          <tr>
            <td >NE</td>
            <td >NEOWIZ_HT</td>
            <td>DICH VU THONG TIN</td>
            <?php 
             $resultHT=JO_14_count('NE',$sea,$sea2,$sea3,$sea4);
			 if($resultHT->num_rows)
			 $resultHTs=$resultHT->fetch_array();
			 ?>
           	<td><?=$resultHTs['VINAPHONE']?></td>
            <td><?=$resultHTs['SFONE']?></td>
            <td><?=$resultHTs['MOBI']?></td>
            <td><?=$resultHTs['VIETNAM']?></td>
            <td><?=$resultHTs['VIETTEL']?></td>
            <td><?=$resultHTs['dem']?></td>
          </tr>
          
          
        </table>
        
      <?php } else{ ?>
	    <table class="tbi2" width ="100%" style="">
          <tr style="">
            <td >Mã Lệnh </td >
            <td >Đơn Vị Cung Cấp </td >
            <td >Loại Hình Nội Dung </td >
            <td >GPC</td >
            <td >SFONE</td >
            <td >VMS </td >
            <td >CITYFONE</td >
            <td >VIETTEL</td >
            <td >TỔNG CỘNG </td >
          </tr>
          <tr>
            <td >HT</td>
            <td >NEOWIZ_HT</td>
            <td>DICH VU THONG TIN</td>
            <?php 
             $resultHT=JO_14_count('HT',$sea,$sea2,$sea3,$sea4);
			 if($resultHT->num_rows)
			 $resultHTs=$resultHT->fetch_array();
			 ?>
           	<td><?=$resultHTs['VINAPHONE']?></td>
            <td><?=$resultHTs['SFONE']?></td>
            <td><?=$resultHTs['MOBI']?></td>
            <td><?=$resultHTs['VIETNAM']?></td>
            <td><?=$resultHTs['VIETTEL']?></td>
            <td><?=$resultHTs['dem']?></td>
          </tr>
          <tr>
            <td >HQ</td>
            <td >NEOWIZ_HT</td>
            <td>NHẠC CHUÔNG,HÌNH ẢNH,VIDEO</td>
           <?php 
             $resultHQ=JO_14_count('HQ',$sea,$sea2,$sea3,$sea4);
			 if($resultHQ->num_rows)
			 $resultHQs=$resultHQ->fetch_array();
   		   ?>
           	<td><?=$resultHQs['VINAPHONE']?></td>
            <td><?=$resultHQs['SFONE']?></td>
            <td><?=$resultHQs['MOBI']?></td>
            <td><?=$resultHQs['VIETNAM']?></td>
            <td><?=$resultHQs['VIETTEL']?></td>
            <td><?=$resultHQs['dem']?></td>
          </tr>
          <tr>
            <td >NP</td>
            <td >NEOWIZ_HT</td>
            <td>NẠP ĐIỂM VÀO TÀI KHOẢN</td>
             <?php 
             $resultNP=JO_14_count('NP',$sea,$sea2,$sea3,$sea4);
			 if($resultNP->num_rows)
			 $resultNPs=$resultNP->fetch_array();
			 ?>
            <td><?=$resultNPs['VINAPHONE']?></td>
            <td><?=$resultNPs['SFONE']?></td>
            <td><?=$resultNPs['MOBI']?></td>
            <td><?=$resultNPs['VIETNAM']?></td>
            <td><?=$resultNPs['VIETTEL']?></td>
            <td><?=$resultNPs['dem']?></td>
          </tr>
        </table>
	  <?php }?>